package com.jf.nep.game;

import com.jf.nep.scene.SceneRenderer;

public class Game {

    /**
     * @param args
     */
    public static void main(String[] args) {
        boolean fullScreen = false;
        
        for (String arg : args) {
            if (arg.equalsIgnoreCase("fullscreen")) {
                fullScreen = true;
            }
        }
        SceneRenderer sceneRenderer = new SceneRenderer(fullScreen);
        try {
            sceneRenderer.create();
            while (sceneRenderer.process()) {
                // Add AI and other stuff
            }
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } finally {
            sceneRenderer.destroy();
        }
    }
}
